﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity
{
    [Table("Users")]
    public class User: BaseEntityInt
    {
        [MaxLength(60),Display(Name ="账户")]
        public string Account { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 超级管理员
        /// </summary>
        public bool SupperUser { get; set; } = false;
        /// <summary>
        /// 用户角色
        /// </summary>
        public virtual ICollection<Role>  Roles { get; set; }
    }
}
